package com.example.springbootdemo.utils;

import java.util.List;

public class PageResult {    //封装的信息，不用自己求出来
    private int pageNum;   //页码
    private int pageSize;   //页大小
    private long totalsize;   //总个数
    private int totalpage;   //总页数
    private List<?> rows;   //分页得到的数据
//getter和setter方法省略

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalsize() {
        return totalsize;
    }

    public void setTotalsize(long totalsize) {
        this.totalsize = totalsize;
    }

    public int getTotalpage() {
        return totalpage;
    }

    public void setTotalpage(int totalpage) {
        this.totalpage = totalpage;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}
